package cc.comac.mom.api;

import java.util.List;

import cc.comac.mom.entity.EquipDocumentManagementEntity;
import cc.comac.mom.entity.EquipRepairDocEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import cc.comac.mom.bean.EquipRepair;
import cc.comac.mom.bean.EquipRepairDoc;
import cc.comac.mom.util.ResultBean;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "mom-equipment-mgmt-srv")
public interface EquipRepairDocService {
	
	@RequestMapping(value = "/p/cs/EquipRepairDocService/insertBatch",method = RequestMethod.POST)
	public ResultBean insertBatch(@RequestBody List<EquipRepairDoc>list);
	
	@RequestMapping(value = "/p/cs/EquipRepairDocService/delete",method = RequestMethod.POST)
	public ResultBean delete(@RequestBody EquipRepairDoc obj);
	
	@RequestMapping(value = "/p/cs/EquipRepairDocService/selectByCondition",method = RequestMethod.POST)
	public ResultBean selectByCondition(@RequestBody EquipRepairDoc obj);
	
	@RequestMapping(value = "/p/cs/EquipRepairDocService/getRepqirRepositoryStepInfo",method = RequestMethod.POST)
	public ResultBean getRepqirRepositoryDocInfo(@RequestBody EquipRepair obj);
	@RequestMapping(value = "/p/cs/EquipRepairDocService/previewPdf",method = RequestMethod.GET)
	public byte[] previewPdf (@RequestParam("documentId")long documentId);

	@RequestMapping(value = "/p/cs/EquipRepairDocService/selectByDocumentId",method = RequestMethod.POST)
	public EquipRepairDocEntity selectByDocumentId(@RequestParam("documentId")Long documentId);
}
